<template>
	<view>
		<hot :hotList='hotList'></hot>
	</view>
</template>

<script setup>
	import hot from '/pages/indexs/components/hot.vue'
 import {ref} from 'vue'
 import {onShow} from '@dcloudio/uni-app'
 // 引入封装接口
 import {getHotAPI} from '@/apis/home.js'  //这里换接口使用
 
 import { mutli} from '../../request/api'
 // 声明变量
 const hotList=ref([])
 
 
 const list= async()=>{
 	const res =await mutli()
 	console.log(res.result);	
 	Object.assign(hotList.value,res.result)
 	console.log(hotList.value);
 	
 }
 onShow(()=>{
 	list()
 })
</script>

<style lang="scss">

</style>
